package org.huatek.anders.constants;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;

/**
 * @author anders
 * @date 2018-12-21 09:18
 **/
public class Constants {
    public final static String JWT_ISS = "JWT";
    public final static String JWT_TOKEN_SECRET = "uAUZiOG7DKik1u4OBB/ujA==";
    public final static long JWT_TOKEN_TIME = 30*60;

    public final static int MAX_REQUEST_COUNT = 200;
    /**
     * 第三方token缓存过期时间
     */
    public final static int QQ_TOKEN_TIME = 60*60*24*30;
    public final static int WECHAT_TOKEN_TIME = 60*60*24*7-600;


    public static void main(String args[]){
        int[] aa = {1,2,3,5,6,7};
        Arrays.stream(aa).filter(a->a>4).forEach(a->{
            System.out.println(a);
        });
    }

}
